Skip to content

feat(site): add umami click tracking to interactive elements - #8

Merged
zackkitzmiller merged 1 commit into
mainfrom
feat/site-umami-analytics
Jul 27, 2026
Merged

feat(site): add umami click tracking to interactive elements#8
zackkitzmiller merged 1 commit into
mainfrom
feat/site-umami-analytics

Conversation

@zackkitzmiller

Copy link
Copy Markdown
Member

Summary

Adds Umami click-event tracking to every clickable element on the marketing site in /site. Umami is already loaded in index.html, so this uses the no-JS approach: a data-umami-event attribute that Umami auto-tracks on click. Attributes only β€” no behavior, styling, or accessibility changes.

Event names are consistent kebab-case, section-prefixed:

Surface Events
Nav nav-logo, nav-<section> (Γ—6), theme-toggle, nav-github
Hero hero-copy-install, hero-github-star
Install install-copy-go, install-copy-run
Screens screens-tab-<id> (Γ—4)
FAQ faq-01…faq-06 (unique per question)
Releases releases-full-changelog
Docs docs-<slug> (Γ—4)
Footer footer-github/releases/issues/changelog, footer-nav-* (Γ—4)

CopyChip gains an optional event prop (default copy-command) plus data-umami-event-cmd so the three copy buttons report distinct names and record which command was copied. Files with no clickable elements (Architecture, Keys, Numbers, App) are untouched.

Test plan

  • All 12 JSX files transpile cleanly via @babel/preset-react (the site transpiles in-browser at runtime, so malformed JSX would white-screen the page).
  • Per-file data-umami-event coverage verified against the full clickable inventory; diff confirmed additions-only.
  • Post-deploy: confirm events appear in the Umami dashboard with a few real clicks.

Tag every clickable link and button on the marketing site with a
data-umami-event attribute so Umami auto-tracks clicks (script already
loaded in index.html). Consistent kebab-case, section-prefixed names:

- Nav: nav-logo, nav-<section>, theme-toggle, nav-github
- Hero: hero-copy-install, hero-github-star
- Install: install-copy-go, install-copy-run (via new CopyChip event prop)
- Screens: screens-tab-<id>
- FAQ: faq-01..faq-06 (unique per question)
- Releases: releases-full-changelog
- Docs: docs-<slug>
- Footer: footer-github/releases/issues/changelog + footer-nav-*

CopyChip gains an optional event prop (default copy-command) plus
data-umami-event-cmd to record which command was copied. Attributes only;
no behavior or accessibility change. Files with no clickable elements
(Architecture, Keys, Numbers, App) untouched.
@netlify

netlify Bot commented Jul 27, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for tihole ready!

Name Link
πŸ”¨ Latest commit bf2dbdb
πŸ” Latest deploy log https://app.netlify.com/projects/tihole/deploys/6a66fe01c749b00008a71f11
😎 Deploy Preview https://deploy-preview-8--tihole.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
πŸ€– Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@zackkitzmiller
zackkitzmiller merged commit 7c8ad81 into main Jul 27, 2026
5 checks passed
@zackkitzmiller
zackkitzmiller deleted the feat/site-umami-analytics branch July 27, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant